package com.seal.tsms.exam.entity;

import com.seal.tsms.base.entity.IdEntity;

import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;

/**
 * Created by Zhang ZhongXiang on 2016/6/3.
 */
@Entity
@Table(name = "tb_testpaper")
public class TestPaper extends IdEntity {
    private String name;


    private Profession professions;
    private Stage stage;

    @ManyToOne
    @JoinColumn(name = "profession_id")
    public Profession getProfessions() {
        return professions;
    }

    public void setProfessions(Profession professions) {
        this.professions = professions;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @ManyToOne
    @JoinColumn(name = "stage_id")
    public Stage getStage() {
        return stage;
    }

    public void setStage(Stage stage) {
        this.stage = stage;
    }
}
